<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Admin/UserReward/index')}">直播打赏</a></li>
		</ul>
		<form class="well form-search" id="query_form" method="post" action="{:U('Admin/UserReward/index')}">
			活动名称： 
			<input type="text" name="broadcastName" style="width: 120px;" value="{$formParam.broadcastName}" placeholder="活动名称...">
			支持时间：
			<input type="text" name="startTime" class="js-datetime" value="{$formParam.startTime|default=''}" style="width: 120px;" autocomplete="off"> -
			<input type="text" class="js-datetime" name="endTime" value="{$formParam.endTime}" style="width: 120px;" autocomplete="off">
			<input type="button" name="query_form_btn" id="queryBtn" data-action="{:U('Admin/UserReward/index')}" class="btn btn-primary" value="查询" />
		</form>
		<form class="js-ajax-form" action="" method="post">
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
				    <th>打赏单号</th>
					<th>活动名称</th>
					<th>打赏者账号</th>
					<th>打赏者昵称</th>
					<th>打赏金额</th>
					<th>支付方式</th>
					<th>打赏时间</th>
				</tr>
			</thead>
			<tbody>
				<php>
					 $payName = array("1"=>'支付宝',"2"=>'微信');
				</php>
				<foreach name="data" item="vo">
				<tr>
				    <td>{$vo.rewardNo}</td>
					<td><a href='{:U("Admin/Live/view", array("broadcastId"=>number_format($vo["broadcastId"], 0, "", "")))}' target="_blank" title="查看详情">{$vo.broadcastName}</a></td>
					<td>{$vo.username}</td>
					<td>{$vo.nickname}</td>
					<td>{$vo.money}</td>
					<td>{$payName[$vo['payWay']]}</td>
					<td>{$vo['createTime']/1000|date='Y-m-d H:i:s', ###}</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		</form>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
	$(document).ready(function(){
		$('input[name="query_form_btn"]').click(function(){
			 $('#query_form').attr('action', $(this).attr('data-action'));
			 $('#query_form').submit();
		});
		$('#typeId').val({$formParam.typeId});
	});
	</script>
</body>
</html>